package com.cube.truthseer.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.cube.truthseer.common.entity.vo.ResultMessage;
import com.cube.truthseer.common.exception.BadRequestException;
import com.cube.truthseer.common.exception.ForbiddenException;
import com.cube.truthseer.common.security.token.Token;
import com.cube.truthseer.entity.user.dto.LoginFormDTO;
import com.cube.truthseer.entity.user.dto.LoginUserDTO;
import com.cube.truthseer.entity.user.dto.UserFormDto;
import com.cube.truthseer.entity.user.po.User;
import org.springframework.beans.factory.annotation.Autowired;

import static com.cube.truthseer.entity.user.constants.UserErrorInfo.Msg.*;
import static com.cube.truthseer.entity.user.constants.UserErrorInfo.Msg.USER_FROZEN;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zw
 * @since 2024-03-09
 */
public interface IUserService extends IService<User> {

    ResultMessage<Token> queryUser(LoginFormDTO loginFormDTO);

    ResultMessage<String> saveUser(UserFormDto userFormDto);
    ResultMessage<User> getUserInfo(Long userId);
}
